<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>javascript json方式的面向对象</title>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="css/base.css" />
<script type="text/javascript" src="js/common.js" ></script>
<style>

</style>

</head>
<body>
<div class="wrap">
	<h2 class="wrap-h2">javascript ！</h2>
	<div class="wrap-main wrap-index">
		<!--内容写这里-->
		
	</div>
</div>
<script>
/*例一*/
var a =10;
var b;

b = a;
b = 20;
console.log(a);

/*例二*/
var arr1 = [1,2,3,4,5];
var arr2;

arr2 = arr1;
arr2 = 10;
console.log(arr1);

/*例三*/
var oB1 = ["a","b","c","d","e"];
var oB2;

oB2 = oB1;
oB2[2] = 100;
console.log(oB1);


</script>
</body>
</html>
